<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<h3 class="titulo">Listagem de Times</h3>
<h:dataTable id="tabela" value="#{timeMB.times}" var="time"
	styleClass="tabela">
	<h:column>
		<f:facet name="header">
			<h:outputText value="Id" />
		</f:facet>
#{time.id}
</h:column>
	<h:column>
		<f:facet name="header">
			<h:outputText value="Nome" />
		</f:facet>
#{time.nome}
</h:column>
	<h:column>
		<f:facet name="header">
			<h:outputText value="Técnico" />
		</f:facet>
#{time.tecnico}
</h:column>
	<h:column>
		<f:facet name="header">
			<h:outputText value="Remover" />
		</f:facet>
		<h:commandLink actionListener="#{timeMB.remove}" value="Remover">
			<f:param name="id" value="#{time.id}" />
			<f:ajax action="click" render="@form" />
		</h:commandLink>
	</h:column>
</h:dataTable>
</html>